<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<title>北京赛车用户投注历史</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<meta content="Copyright ©com 版权所有" name="copyright">
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>css/all_new.css" />
		<link rel="shortcut icon" type="image/x-icon"
			href="<%=basePath%>favicon.ico" /><script type="text/javascript" src="<%=basePath%>js/jquery.min.js?20161126"></script>
	<script type="text/javascript" src="<%=basePath%>js/layer/layer.js?20161126"></script>
	</head>
	<body id="bodyModule" class="skin_brown">
		<div style="" class="conLeft" id="conLeft">
			<div class="logo">
				<img src="<%=basePath%>images/logo_sscgb_20160513174944.png"
					width="120" />
			</div>
			<div class="left-content">
				<div class="left_corll">
					<div class="main-nav">
						<p style="width: 210px; margin: 0pt auto;">
							<span class="on"> <a href="<%=basePath%>user/user_tz"
								title="">下注状况</a> </span> |
							<span> <a href="<%=basePath%>user/user_history" title="">帐户历史</a>
							</span> |
							<span> <a href="<%=basePath%>win/win_num_list" title="">开奖结果</a>
							</span>
							<span> <a " href="<%=basePath%>user/user_news" title="">个人资讯</a>
							</span> |
							<span> <a nav="rule" href="<%=basePath%>user/pk_rule"
								title="">游戏规则</a> </span> |
							<span> <a href="<%=basePath%>user/password" title="">修改密码</a>
							</span>
							<span> <a href="<%=basePath%>user/logout" title="">退出系统</a>
							</span>
						</p>
					</div>
					<div style="" id="leftLoader">
						<div id="side_left" class="side_left">
							<div id="leftUser">
								<span id="autoRefreshspan" class="hidden"></span>
								<div id="accountInfo" class="accountInfo">
									<table class="struct_table_accountInfo  bg_white dataArea"
										cellspacing="0">
										<colgroup>
											<col class="col1">
											<col class="col2">
										</colgroup>
										<tbody>
											<tr>
												<td class="inner_text">
													用户帐号：
												</td>
												<td id="account">
													<em>${sessionUser.userNo}</em>
												</td>
											</tr>
											<tr>
												<td class="inner_text">
													信用额度：
												</td>
												<td id="credit">
													<em>${sessionUser.creditAmt}</em>
												</td>
											</tr>
											<tr>
												<td class="inner_text">
													信用余额：
												</td>
												<td class="bold" id="re_credit">
													<em>${sessionUser.userBalance}</em>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
								<div id="newOrder" class="box new-order">
									<ul id="refresh_title">
										<li class="new_fresh_title">
											最新注单
										</li>
										<li class="rushBtn">
											<a id="rushBtn" class=" btn_r elem_btn btn"
												href="javascript:void(0)">刷新</a>
										</li>
									</ul>
									<div class="neworderListBox">
										<table class="struct_table_newOrder" cellspacing="0">
											<colgroup>
												<col class="col1">
												<col class="col2">
												<col class="col3">
												<col class="col4">
											</colgroup>
											<thead><tr class="sub_title bg_deep_blue"><td>号码</td><td>赔率</td><td>金额</td><td>时间</td></tr></thead>
											<tbody id="openData" class="openData"></tbody>
										</table>
									</div>
								</div>
								<div id="wangzhandh">
									<table class="struct_table_accountInfo  bg_white dataArea w100"
										cellspacing="0">
										<colgroup>
											<col class="col1">
											<col class="col2">
										</colgroup>
										<tbody>
											<tr id="office_site">
												<td colspan="2">
													<table class="w100">
														<tbody>
															<tr>
																<th colspan="2" class="kj_tit">
																	开奖网站导航
																</th>
															</tr>
															<tr class="tr_office_site">
																<th class="w50">
																	<a target="_blank" href="http://www.bwlc.net/buy/trax/">北京赛车</a>
																</th>
																<th>
																	<a target="_blank"
																		href="http://www.shishicai.cn/cqssc/touzhu/">重庆时时彩</a>
																</th>
															</tr>
														</tbody>
													</table>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div style="background: none repeat scroll 0% 0% rgb(255, 255, 255);"
			class="conRight" id="conRight">
			<div style="display: block;" class="header header-bg" id="header">
				<div class="header-content header-bg">
					<div class="header-op">
						<div class="top-op" id="select_sys">
							<a href="<%=basePath%>user/double_disc"
								class="switch nav_longstring switch-on" id="pk10_sys">北京賽車(PK10)</a>
							<a href="<%=basePath%>wait"
								class="switch nav_longstring" id="ssc_sys">重庆时时彩</a>
						</div>
					</div>
					<div class="sub-nav" id="integrate-nav">
						<div style="display: block;" id="elem_pk10"
							class="elem_groupFilter pk10 hide">
							<a href="<%=basePath%>user/double_disc">两面盘</a> |
							<a href="<%=basePath%>user/double_1_5">1 ~ 5</a> |
							<a href="<%=basePath%>user/double_6_10">6 ~ 10</a> |
							<a href="<%=basePath%>user/double_group" class="w5em">冠亚军组合</a>
						</div>
						<div style="display: none;" id="elem_ssc"
							class="elem_groupFilter ssc hide">
							<a class="" href="javascript:void(0)" subnav="integrate_sc">整合</a>
							|
							<a href="javascript:void(0)" subnav="ball_sc_1">第一球</a> |
							<a href="javascript:void(0)" subnav="ball_sc_2">第二球</a> |
							<a href="javascript:void(0)" subnav="ball_sc_3">第三球</a> |
							<a href="javascript:void(0)" subnav="ball_sc_4">第四球</a> |
							<a href="javascript:void(0)" subnav="ball_sc_5">第五球</a> |
						</div>
						<div style="display: none;" id="elem_klc"
							class="elem_groupFilter klc">
							<a href="javascript:void(0)" subnav="bothSides">兩面盤</a> |
							<a href="javascript:void(0)" subnav="ball1">第一球</a> |
							<a href="javascript:void(0)" subnav="ball2">第二球</a> |
							<a href="javascript:void(0)" subnav="ball3">第三球</a> |
							<a href="javascript:void(0)" subnav="ball4">第四球</a> |
							<a href="javascript:void(0)" subnav="ball5">第五球</a> |
							<a href="javascript:void(0)" subnav="ball6">第六球</a> |
							<a href="javascript:void(0)" subnav="ball7">第七球</a> |
							<a href="javascript:void(0)" subnav="ball8">第八球</a> |
							<a href="javascript:void(0)" subnav="sumDT">正碼</a> |
							<a href="javascript:void(0)" subnav="evenCode">連碼</a> |
						</div>
						<div style="display: none;" id="elem_nc"
							class="elem_groupFilter nc">
							<a href="javascript:void(0)" subnav="bothSides_nc">兩面盤</a> |
							<a href="javascript:void(0)" subnav="ball_nc_1">第一球</a> |
							<a href="javascript:void(0)" subnav="ball_nc_2">第二球</a> |
							<a href="javascript:void(0)" subnav="ball_nc_3">第三球</a> |
							<a href="javascript:void(0)" subnav="ball_nc_4">第四球</a> |
							<a href="javascript:void(0)" subnav="ball_nc_5">第五球</a> |
							<a href="javascript:void(0)" subnav="ball_nc_6">第六球</a> |
							<a href="javascript:void(0)" subnav="ball_nc_7">第七球</a> |
							<a href="javascript:void(0)" subnav="ball_nc_8">第八球</a> |
							<a href="javascript:void(0)" subnav="sumDT_nc">正碼</a> |
							<a href="javascript:void(0)" subnav="evenCode_nc">連碼</a> |
						</div>
						<div style="display: none;" id="elem_ks"
							class="elem_groupFilter ks hide">
							<a href="javascript:void(0)" subnav="bothSides_ks" class="w5em">大小骰寶</a>

						</div>
						<div style="display: none;" id="elem_kb"
							class="elem_groupFilter kb hide">
							<a href="javascript:void(0)" subnav="bothSides_kb" class=""
								style="width: 10em;">總和、比數、五行</a> |
							<a href="javascript:void(0)" subnav="sumDT_kb">正碼</a> |
						</div>
					</div>
					<span id="marqueeRefresh" class="hidden">14</span>
				</div>
			</div>
			<!--header end-->
			<div id="layout" class="container">
				<div style="display: block;" class="main-content bet-content"
					dom="layoutright" id="layoutright">
					<div class="mains_corll">
						<div style="" id="rightLoader" dom="right">
							<div class="page status status-module" id="status" tmp="status">
								<div style="height: 4px; visibility: hidden; font-size: 0pt;"></div>
								<ul class="of-h status-contain hidden">
									<li class="float-l status-on status-off" id="ssc-status">
										重庆时时彩
									</li>
									<li class="float-l status-on status-off" id="pk10-status"
										current="2">
										北京赛车
									</li>
								</ul>
								<div class="status-xg"></div>
								<div class="clear"></div>
								<div class="dataArea">
									<table class="t1 tc h1 status" id="result_tb" width="100%">
										<thead>
											<tr>
												<th>
													序号
												</th>
												<th>
													帐号
												</th>
												<th>
													姓名
												</th>
												<th>
													类型
												</th>
												<th>
													金额
												</th>
												<th>
													备注
												</th>
												<th>
													时间
												</th>
												<th>
													操作人
												</th>
											</tr>
										</thead>
										<tbody>
											<c:forEach items="${pageBean.list}" var="ub" varStatus="st">
												<tr class="">
													<td class="greener">
														${ub.balanceId}
													</td>
													<td>
														${ub.userNo }
													</td>
													<td>
														${ub.userName }
													</td>
													<td>
														<c:if test="${ub.balanceType == 1 }">
															充值
														</c:if>
														<c:if test="${ub.balanceType == 2 }">
															购买产品
														</c:if>
														<c:if test="${ub.balanceType == 3 }">
															收益
														</c:if>
														<c:if test="${ub.balanceType == 4 }">
															提现
														</c:if>
													</td>
													<td>
														${ub.balance }
													</td>
													<td>
														${ub.balanceContext }
													</td>
													<td class="">
														<fmt:formatDate value="${ub.balanceDate}" type="both" pattern="yyyy-MM-dd HH:mm:ss" />
													</td>
													<td>
														${ub.operName }
													</td>
												</tr>
											</c:forEach>
										</tbody>
									</table>
									${pageBean.pageStr}
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="minWidth"></div>
			</div>
		</div>
	</body>
<script type="text/javascript">
	function dataAjax(){
		$.get('<%=basePath %>cathectic/latest_cathectic?t='+Math.random(),function(result){
			console.log(result);
			if(result.resultCode == '5'){
				layer.open({
					content:result.msg,
					btn: ['去登陆'], //可以无限个按钮
				  	yes: function(index, layero){
						   window.location.href='<%=basePath%>';
					  }
				});    
			}
			$("#openData").html("");
	    	$.each(result.dataList, function(i, item) {
	            $("#openData").append("<tr><td>"+item.cathecticCodeStr+"</td><td class='red'>"+item.dictRate+"</td><td>"+item.cathecticInt+"</td><td>"+item.dateTime+"</td></tr>");
	        });
	    });
	}
	setInterval("dataAjax()",8000);
</script>
</html>